-- GENERATED SPELL FOR [Bloodwarder Falconer] --


function spell0_17994(pUnit, Event) --@Arcane Shot,n/a--
pUnit:FullCastSpellOnTarget(35401,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17994', 0, 1)
end

function spell1_17994(pUnit, Event) --@Call of the Falcon,n/a--
pUnit:FullCastSpellOnTarget(34852,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17994', 10320, 1)
end

function spell2_17994(pUnit, Event) --@Deterrence,Self--
pUnit:FullCastSpellOnTarget(31567,pUnit)
pUnit:RegisterEvent('Sorts_17994', 10345, 1)
end

function spell3_17994(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(34879,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17994', 690, 1)
end

function spell4_17994(pUnit, Event) --@Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(32908,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17994', 10303, 1)
end

function Sorts_17994(pUnit, Event)
local choix_sorts_17994 = math.random(0, 4)
if choix_sorts_17994 == 0 then
pUnit:RegisterEvent('spell0_17994', 1, 1)
end
if choix_sorts_17994 == 1 then
pUnit:RegisterEvent('spell1_17994', 1, 1)
end
if choix_sorts_17994 == 2 then
pUnit:RegisterEvent('spell2_17994', 1, 1)
end
if choix_sorts_17994 == 3 then
pUnit:RegisterEvent('spell3_17994', 1, 1)
end
if choix_sorts_17994 == 4 then
pUnit:RegisterEvent('spell4_17994', 1, 1)
end
end

function mob17994_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17994', math.random(1500, 3000), 1)
end

function mob17994_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17994_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17994_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17994, 1, 'mob17994_Action')
RegisterUnitEvent(17994, 2, 'mob17994_Leave')
RegisterUnitEvent(17994, 3, 'mob17994_Kill')
RegisterUnitEvent(17994, 4, 'mob17994_Die')
